package com.thwcompany.dao;
import com.thwcompany.fallback.IPersonalFallbackFactory;
import com.thwcompany.pojo.Personal;
import config.FeignConfig;
import feign.Param;
import feign.RequestLine;
//import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.cloud.openfeign.FeignClient;

@SuppressWarnings("all")
@FeignClient(name = "PROVIDER-HYSTRIX",configuration = FeignConfig.class,fallbackFactory = IPersonalFallbackFactory.class)
public interface IPersonalDao {

    @RequestLine("GET /getOne/{id}")
    public Personal getPersonal(@Param("id") int id);
}
